
# Find libusb-1.0 

INCLUDE(FindPkgConfig)
FIND_PATH(
    LIBUSB_INCLUDE_DIRS
    NAMES libusb.h
    PATHS /usr/local/include/libusb-1.0
          /usr/include/libusb-1.0
          /opt/grandroid/include/libusb-1.0
    )

    

FIND_LIBRARY(
    LIBUSB_LIBRARIES
    NAMES usb-1.0
    PATHS /usr/local/lib
          /usr/lib
          /usr/lib/x86_64-linux-gnu
          /opt/grandroid/lib
)



INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBUSB DEFAULT_MSG LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIRS)
MARK_AS_ADVANCED(LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIRS LIBUSB_THREADS_LIBRARIES)
